home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2010 Summer - Disc 1 / WN_Ete2010_CD1.iso / Onglet5 / Weezo / Weezo setup.exe / {code_appDir} / www / res / explorer / Photo1 / layout2.php < prev    next >
PHP Script  |  2010-05-19  |  5KB  |  126 lines

  1. <?php
  2. /**
  3.  * Photo album V3 configuration file
  4.  *
  5.  * Configuration of standard photo album resource
  6.  * this script is included by /res/administration/std/resourceConfig.php
  7.  * this script should never be directly called.
  8.  *
  9.  * resourceConfig.php sets 2 variables :
  10.  * $resourceData (array) which contains resource parameters loaded from user.res file
  11.  * $_ENV['configurationEnvironment'] which indicates if resourceConfig.php has been called from browser ('browser')
  12.  * or from application's embeded browser ('application')
  13.  *
  14.  * PHP version 5
  15.  *
  16.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  17.  * that is available through the world-wide-web at the following URI:
  18.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  19.  * the PHP License and are unable to obtain it through the web, please
  20.  * send a note to license@php.net so we can mail you a copy immediately.
  21.  *
  22.  * @category   NA
  23.  * @package    NA
  24.  * @author     Nicolas Bruley / Peer 2 World <contact@weezo.net>
  25.  * @copyright  2005-2009 Nicolas Bruley / Peer 2 World
  26.  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
  27.  * @version    CVS: $Id:$
  28.  * @link       http://www.weezo.net
  29.  * @since      File available since Release 1.0.0
  30.  */
  31.  
  32.  
  33. /*
  34.  ***************************************************************************************************************************
  35.  * Insert Photo title, and combined layout selector
  36.  ***************************************************************************************************************************
  37.  */
  38. photoHeader();
  39.  
  40. /*
  41.  ***************************************************************************************************************************
  42.  * Start of resource specific section
  43.  ***************************************************************************************************************************
  44.  */
  45.  
  46. echo outTableTransparent(false,'').'<tr>';
  47.  
  48.  
  49. /*
  50.  ***************************************************************************************************************************
  51.  * Action panel (multiple downloads, image upload, navigation)
  52.  ***************************************************************************************************************************
  53.  */
  54. if(efActionPanelDisplayed()) {
  55.     efActionPanel('left',false,array('shadows'=>1,'panelExtraHTML'=>''));
  56.     echo '<td id="leftTD" style="vertical-align:top;width:auto">';
  57. }
  58. else echo '<td style="vertical-align:top; width:100%">';
  59.  
  60. outShadowBefore('100%');
  61. echo outDivFrame('frame1','id="thumbnailsFrame"');
  62.  
  63. /*
  64.  ***************************************************************************************************************************
  65.  * Frame header
  66.  ***************************************************************************************************************************
  67.  */
  68.  
  69. // Files layout selector and thumbnails size selector
  70. //$l=efFilesListSelector().'   '.outThumbnailsSizeButtons(true);
  71. $l='';
  72.  
  73. // Sort controls
  74. $r=outSortControls();
  75.  
  76. // Thumbnails interval selection controls
  77. $r.=outExplorerThumbnailsSelector(1,true);
  78.  
  79. echo outFrameHeaderTable('frame1Header',$l,' '.$r);
  80.  
  81.  
  82. /*
  83.  ***************************************************************************************************************************
  84.  * Thumbnails area
  85.  ***************************************************************************************************************************
  86.  */
  87.  
  88.  
  89. // List or icons view
  90. echo '<div id="noFileDiv" style="overflow:auto;position:relative;height:300px;padding:0;margin:0"></div>';
  91. echo '<center style="clear:left" id="thumbnailsFrameBottom">'."</center></div>\n";
  92.  
  93. outFrameShadowAfter();
  94.  
  95. echo '</td></tr></table>';
  96.  
  97. echo '</div>'; // close topDiv
  98.  
  99.  
  100. // Drag'n drop registration
  101. echo cfDragRegisterItems();
  102.  
  103. ?>
  104. <script type="text/javascript">
  105. function keyLeft(){<?php if(0+cfRGetVar('thumbnailsIndex')>0) echo 'goThumbnail('.max(0,0+cfRGetVar('thumbnailsIndex')-cfRGetVar('itemsPerPage')).',1);'?>}
  106. function keyRight(){<?php if(cfRGetVar('thumbnailsIndex')+cfRGetVar('itemsPerPage')<efDirGetNbOfFiles($_ENV['weezoResEfFiles'])) echo 'goThumbnail('.((int)cfRGetVar('thumbnailsIndex')+(int)cfRGetVar('itemsPerPage')).',1);'?>}
  107.  
  108. function winResized(){
  109.     alignBottom(dgi("noFileDiv"),winMe,15);
  110.     if(actualOffsetBottom(dgi("thumbnailsFrameBottom"))<winMe.getInnerHeight())    alignBottom(dgi("thumbnailsFrame"),winMe,10);
  111. <?php
  112. if(cfRGetVar('treeViewDisplayed')){
  113. ?>
  114.     if(dgi('actionsPanel').style.display!='none') alignBottom(dgi("<?php echo $tree->HTMLDivID();?>"),dgi("thumbnailsFrame"),0);
  115. <?php
  116. }
  117. ?>
  118.     dd.recalc();
  119. }
  120. winResized();
  121. </script>
  122. <?php
  123. efFilesList("noFileDiv",array('commitDraw'=>true));
  124. ?>
  125. </body>
  126. </html>